import styles from './index.less'
import { Switch } from 'antd'
import { useEffect } from 'react'
import {listdata,posttest} from '@/api/index'
import { request } from 'umi'


export default function IndexPage() {

  useEffect(() => {
    listdata({
      a:5
    }).then((res) => {
      console.log(res);
    })

    posttest({
      aaa: 999
    }).then((res) => {
      console.log(res);
    })
  })

  return (
    <div>
      <h1 className={styles.title}>HOME</h1>
    </div>
  );
}
